function add_new_txncode(){
		//alert(1);
		var txncode = document.getElementById('TXNCODE').value;	
		var txncodelist = document.getElementById('TXNCODElist').value;
		var txncode_arr = txncodelist.split('|');
		var stringtxncode='';
		var num=0;
		for(i in txncode_arr){
			if (txncode_arr[i]==txncode){
				num=1;
				break;
			}
		}
		if(num==0){
			stringtxncode = txncode;
			if(txncodelist==''){
				document.getElementById('TXNCODElist').value = document.getElementById('TXNCODElist').value + stringtxncode;
			}else{
				document.getElementById('TXNCODElist').value = document.getElementById('TXNCODElist').value + "|" + stringtxncode;	
			}
		}
	}
	
	function delete_txncode(){
		//alert(1);
		var i;
		var num=0;
		var txncode = document.getElementById('TXNCODE').value;
		var txncodelist = document.getElementById('TXNCODElist').value;
		var txncode_arr = txncodelist.split('|');
		if(txncodelist.replace('|','')==txncode){
			document.getElementById('TXNCODElist').value='';
			num=1;
		}
		if(num==0){
			for(i in txncode_arr){
				if(txncode_arr[i]==txncode){	
					txncodelist = txncodelist.replace('|'+txncode,'');
					txncodelist = txncodelist.replace(txncode+'|','');
				}
			}
			document.getElementById('TXNCODElist').value = txncodelist;
		}
	}
	
	function checkmaxmin(){
		var vmin = document.getElementById('FEEMIN').value;
		var vmax = document.getElementById('FEEMAX').value;
		if(vmax < vmin){
			document.getElementById('tmpFEEMAX').click();
		}
	}